;; -------- markdown --------
(use-package markdown-mode
  :init
  (setq markdown-enable-math t)
  (defun p1uxtar-insert-date-today ()
    "Insert string for today's date as org-mode format."
    (interactive)
    (insert (format-time-string "<%F, %w>")))
  :custom
  (markdown-hide-markup nil)
  ;; (markdown-header-scaling t)
  (markdown-indent-function t)
  ;; (markdown-enable-math t)
  (markdown-hide-urls nil)
  :config
  (electric-pair-mode 1)
  :bind
  (:map markdown-mode-map
        ("C-c `" . 'markdown-insert-gfm-code-block)
        ("C-c ." . #'p1uxtar-insert-date-today)))

(provide '+markdown)
